<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use think\Db;

class Services extends Frontend
{
    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = 'default';

    public function _initialize()
    {
        parent::_initialize();

        $banner = Db::name('banner')->where([
            'lanmu' => 'service'
        ])->select();
        $this->assign('banner', $banner);
    }

    //联系我们
    public function index(){
        return $this->view->fetch();
    }

    //服务理念
    public function idea()
    {
        $service = Db::name('service')->order('weigh desc,id desc')->select();
        $this->assign('service', $service);
        return $this->view->fetch();
    }

    //服务流程
    public function flow()
    {
        $process = Db::name('process')->order('weigh desc,id desc')->select();
        $this->assign('process', $process);
        return $this->view->fetch();
    }
}